package com.java1234.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * *@author:  杨子铭
 * *@date: 2023/12/25    15:31
 * *@description: Web项目配置类
 **/
@Configuration
public class WebAppConfigurer implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/image/swiper/**").addResourceLocations("file:E:\\desk\\ruankao\\微信小程序商城完整源码\\微信小程序商城初步完整源码\\图片\\java1234-mall\\swiperImgs\\");
        registry.addResourceHandler("/image/bigType/**").addResourceLocations("file:E:\\desk\\ruankao\\微信小程序商城完整源码\\微信小程序商城初步完整源码\\图片\\java1234-mall\\bigTypeImgs\\");
        registry.addResourceHandler("/image/product/**").addResourceLocations("file:E:\\desk\\ruankao\\微信小程序商城完整源码\\微信小程序商城初步完整源码\\图片\\java1234-mall\\productImgs\\");
        registry.addResourceHandler("/image/productSwiperImgs/**").addResourceLocations("file:E:\\desk\\ruankao\\微信小程序商城完整源码\\微信小程序商城初步完整源码\\图片\\java1234-mall\\productSwiperImgs\\");
        registry.addResourceHandler("/image/productIntroImgs/**").addResourceLocations("file:E:\\desk\\ruankao\\微信小程序商城完整源码\\微信小程序商城初步完整源码\\图片\\java1234-mall\\productIntroImgs\\");
        registry.addResourceHandler("/image/productParaImgs/**").addResourceLocations("file:E:\\desk\\ruankao\\微信小程序商城完整源码\\微信小程序商城初步完整源码\\图片\\java1234-mall\\productParaImgs\\");
    }
}
